<template>
  <div class="table-head">
    <a-card :bordered="false" :header-style="{ padding: '0 12px' }">
      <template #title> {{ t["轮播管理"] }} </template>

      <div>
        <div class="flex gap-3">
          <a-button type="primary" @click="create">
            {{ t["新建"] }}
            <template #icon>
              <IconPlus />
            </template>
          </a-button>
          <a-button @click="list">{{ t["刷新"] }}</a-button>
        </div>
      </div>
    </a-card>
  </div>
</template>

<script setup lang="ts">
import { create, list } from "../data/curd";

const t = translate("公共模块");
</script>

<style lang="scss" scoped>
:deep(.arco-card-header) {
  border: none;
}
</style>
